package com.linQing.waterWork.modle.dto;

import com.linQing.waterWork.annotation.EndTimeAfterStartTime;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.Date;
@Data
@EndTimeAfterStartTime
public class PageEventInfoDto implements Serializable {

    @ApiModelProperty(value = "报警开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "报警结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 报警类型
     */
    @ApiModelProperty(value = "报警信息")
    private String eventMessage;

    /**
     * 报警等级
     */
    @ApiModelProperty(value = "报警等级")
    private Integer eventLevel;

    /**
     * 处理状态
     */
    @ApiModelProperty(value = "处理状态")
    private Integer state;

    @ApiModelProperty(value = "分页页数", required = true)
    @Min(value = 1, message = "分页页数不能小于1")
    private int pageNum;

    @ApiModelProperty(value = "分页条数", required = true)
    @Min(value = 1, message = "分页页数不能小于1")
    private int PageSize;
}
